package com.example.ccj.u.tengxun.cos;

import androidx.annotation.Nullable;

import lombok.Getter;
import lombok.ToString;


@ToString
public class TheCosKeyIsAbnormalException extends Exception {
    @Getter
    private int id;
    private String message;

    public TheCosKeyIsAbnormalException(int id, String message) {
        super(message);
        this.id = id;
        this.message = message;
    }

    public TheCosKeyIsAbnormalException(int id) {
        this.id = id;
        this.message = "";
    }


    public void setId(int id) {
        this.id = id;
    }

    @Nullable
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
